﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JobRankList.aspx.cs" Inherits="BOH.DataManagement.JobRankList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="../style/css.css" type="text/css" rel="Stylesheet" />
    <script src="../js/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="../js/common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divNavigation">
       当前位置:<a href="OverView.aspx" target="frameControl">后台数据管理</a> >> 职位列表
    </div>
    <div id="bodyDiv">
        <div id="divSearch">
        <a href="JobRankModify.aspx" target="frameControl">添加新的职称</a>
        </div>
    </div>
    <div id="divGrid">
      <asp:GridView ID="JobRankViewList" runat="server" AutoGenerateColumns="False"  
            Width="98%" CssClass="Grid" onrowdeleting="JobRankViewList_RowDeleting">
            <Columns>
                <asp:TemplateField HeaderText="职称名称">
                    <ItemTemplate>
                        <asp:Label ID="RankName" Text='<%#Eval("JobRankName") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="职称级别">
                    <ItemTemplate>
                        <asp:Label ID="JobRankLevel" Text='<%#Eval("JobRankLevel") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                        <asp:Label ID="JobRankStatus" Text='<%#getStatus(Eval("status").ToString()) %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField  HeaderText ="修改" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="60px">
                    <ItemTemplate>
                        <a  href='JobRankModify.aspx?ID=<%#Eval("JobRankID") %>'  target="frameControl">修改</a>
                        <asp:HiddenField ID="hiddeID" runat="server" Value='<%#Eval("JobRankID") %>' />
                    </ItemTemplate>
                    <HeaderStyle Width="60px" HorizontalAlign="Center" />
                    <ItemStyle  Width="60px" HorizontalAlign="Center"/>
                </asp:TemplateField>
                <asp:CommandField HeaderText="删除" ButtonType="Link" DeleteText="删除" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ShowDeleteButton="true"  HeaderStyle-Width="50px" ItemStyle-Width="50px"/>
            </Columns>
            <AlternatingRowStyle CssClass="ARow" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
